import Vue from 'vue';
import App from './App';
import router from './router';
import iView from 'iview';
import store from './vuex/store';
import 'iview/dist/styles/iview.css';
import http from './util/http';

//定义全局变量
Vue.prototype.$post = http.post;
Vue.prototype.$get = http.get;
Vue.prototype.$patch = http.patch;
Vue.prototype.$put = http.put;

Vue.config.productionTip = false;
Vue.use(iView, {
    transfer: true,
    size: 'small'
});

/* eslint-disable no-new */
new Vue({
    el: '#app',
    router,
    store,
    render: h => h(App)
});
